package phoenix.web.test_objects.data_providers;

import phoenix.core.PhoenixManager;
import phoenix.core.base.extensions.TestBaseExt;
import phoenix.web.test_objects.crm.MailTests;

public class MyAccountDataProviders extends TestBaseExt
{

	public MyAccountDataProviders(PhoenixManager p_phoenix)
	{
		super(p_phoenix);
	}

	public Object[][] myAccountData()
	{
		// Generate email
		String emailTemplate = manager.config().MAIL_USER;
		String emailUniquePrefix = cronos().getCurrentDate("HHmmssyyMMdd") + randomizer().getRandomInt(1, 100).toString();
		String emailName = string().getSubstringBefore(emailTemplate, "@");
		String emailDomain = string().getSubstringAfter(emailTemplate, "@");
		String p_newEmail = emailName + "+" + emailUniquePrefix + "@" + emailDomain;
		// Get mail subject
		return new Object[][]
			{
				{ p_newEmail }
			};
	}
}
